home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / MicroCalc / MicroCalc.jar / f.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-11-07  |  2.2 KB  |  68 lines

  1. import javax.microedition.lcdui.Command;
  2. import javax.microedition.lcdui.CommandListener;
  3. import javax.microedition.lcdui.Displayable;
  4. import javax.microedition.lcdui.Form;
  5. import javax.microedition.lcdui.Image;
  6. import javax.microedition.lcdui.ImageItem;
  7.  
  8. // $FF: renamed from: f
  9. public class class_0 extends Form implements CommandListener {
  10.    // $FF: renamed from: new MicroCalc
  11.    MicroCalc field_0;
  12.    // $FF: renamed from: int javax.microedition.lcdui.Image
  13.    private Image field_1;
  14.    // $FF: renamed from: do a
  15.    private a field_2;
  16.    // $FF: renamed from: if long
  17.    private long field_3;
  18.    // $FF: renamed from: byte boolean
  19.    boolean field_4 = false;
  20.    // $FF: renamed from: for javax.microedition.lcdui.Command
  21.    Command field_5 = new Command(Resources.getText(5), 7, 4);
  22.    // $FF: renamed from: case javax.microedition.lcdui.Command
  23.    Command field_6 = new Command(Resources.getText(6), 1, 1);
  24.    // $FF: renamed from: a long
  25.    long field_7;
  26.    // $FF: renamed from: try f.a
  27.    f$a field_8;
  28.  
  29.    public class_0(MicroCalc var1) {
  30.       super(Resources.getText(0));
  31.       this.field_0 = var1;
  32.       this.field_1 = this.method_1("img/MicroCalc.png");
  33.       this.field_2 = new a(this.field_0, this);
  34.       ((Form)this).append(new ImageItem("SL45i/6688i", this.field_1, 3, (String)null));
  35.       ((Displayable)this).addCommand(this.field_6);
  36.       ((Displayable)this).addCommand(this.field_5);
  37.       ((Displayable)this).setCommandListener(this);
  38.       this.field_7 = System.currentTimeMillis();
  39.       this.field_8 = new f$a(this);
  40.       this.field_8.a = false;
  41.       this.field_8.start();
  42.    }
  43.  
  44.    // $FF: renamed from: a (f) a
  45.    static a method_0(class_0 var0) {
  46.       return var0.field_2;
  47.    }
  48.  
  49.    public void commandAction(Command var1, Displayable var2) {
  50.       if (var1 == this.field_5) {
  51.          this.field_0.destroyApp(false);
  52.       } else if (var1 == this.field_6) {
  53.          this.field_4 = true;
  54.          this.field_0.if.setCurrent(this.field_2);
  55.       }
  56.  
  57.    }
  58.  
  59.    // $FF: renamed from: a (java.lang.String) javax.microedition.lcdui.Image
  60.    private Image method_1(String var1) {
  61.       try {
  62.          return Image.createImage("/" + var1);
  63.       } catch (Exception var2) {
  64.          return null;
  65.       }
  66.    }
  67. }
  68.